﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Admin.Register.RegInfo
{
    public partial class RegInfoEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                LoadData();
            }
        }

        /// <summary>
        /// 数据绑定显示
        /// </summary>
        protected void LoadData()
        {

        }

        /// <summary>
        /// 新增或修改
        /// </summary>
        /// <param name="strID">ID为空则为新增；不为空则为修改</param>
        protected void SaveData(string strID)
        {
            if (strID.ToString() == string.Empty)
            {
                //新增
            }
            else
            {
                //修改
            }
        }

        /// <summary>
        /// 数据保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            SaveData("");
        }
    }
}